<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page isELIgnored="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="pragma" content="no-cache"/>
    <meta http-equiv="cache-control" content="no-cache"/>
    <meta http-equiv="expires" content="0"/>
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
    <meta http-equiv="description" content="This is my page"/>

    <link href="${pageContext.request.contextPath}/static/css/front.css" rel="stylesheet" type="text/css"
          media="screen"/>
    <link href="${pageContext.request.contextPath}/static/css/daoke.css.css" rel="stylesheet" type="text/css"
          media="screen"/>
    <link href="${pageContext.request.contextPath}/static/css/iconfont.css" rel="stylesheet" type="text/css"
          media="screen"/>
    <link href="${pageContext.request.contextPath}/static/css/demo.css" rel="stylesheet" type="text/css"
          media="screen"/>
    <script language="JavaScript" type="text/javascript">
        function check2() {
            if (document.form1.userName.value == "") {
                alert("请输入账号");
                return false;
            }
            if (document.form1.userPw.value == "") {
                alert("请输入密码");
                return false;
            }
            document.form1.submit();
        }
    </script>

</head>

<body style="background: -webkit-linear-gradient(#A5DBFE,#FFFFFF)">
<jsp:include flush="true" page="/front/inc/top.jsp"></jsp:include>

<%--<div id="page">--%>
<div class="w1440 bg-f" style="margin: 0 auto;min-height: 700px;">
    <div id="page-bgtop">
        <div id="page-bgbtm">
            <div id="content">
                <div class="post">
                    <h1 class="title"><a href="#"><i class="iconfont icon-shenbao"></i>医院信息</a></h1>
                    <div class="entry">
                        <table width="1060px" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA">
                            <tr align="center" bgcolor="#6699cc" height="40px;">
                                <td width="5%"
                                    style="min-height: 55px; font-size: 18px; color: #000000; border-right: 1px solid white;">
                                    序号
                                </td>
                                <td width="20%"
                                    style="min-height: 55px; font-size: 18px;color: #000000;border-right: 1px solid white;">
                                    名称
                                </td>
                                <td width="20%"
                                    style="min-height: 55px; font-size: 18px;color: #000000;border-right: 1px solid white;">
                                    地址
                                </td>
                                <td width="20%"
                                    style="min-height: 55px; font-size: 18px;color: #000000;border-right: 1px solid white;">
                                    电话
                                </td>
                            </tr>
                            <c:forEach var="hospital" items="${hospitalList}" varStatus="status">
                                <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';"
                                    onMouseOut="javascript:this.bgColor='#FFFFFF';" height="35px;">
                                    <td bgcolor="#FFFFFF" align="center" style="border-right: 1px solid silver;">
                                            ${status.index+1}
                                    </td>
                                    <td bgcolor="#FFFFFF" align="center" style="border-right: 1px solid silver;">
                                        <a style="font-size: 14px;"
                                           href="${pageContext.request.contextPath}/expert/findExpertByHospitalId.html?hospitalId=${hospital.id}"> ${hospital.name}</a>
                                    </td>
                                    <td bgcolor=" #FFFFFF" align="center" style="border-right: 1px solid silver;">
                                            ${hospital.address}
                                    </td>
                                    <td bgcolor="#FFFFFF" align="center" style="border-right: 1px solid silver;">
                                            ${hospital.tel}
                                    </td>
                                </tr>
                            </c:forEach>
                        </table>
                    </div>

                    <div class="ht60 l-ht60 color-3 font20 border-b-1" style="padding-left: 20px"><i
                            class="iconfont icon-sousuo color-f font16"></i>按科室找医生
                    </div>
                    <hr>
                    <div class="display bg-f" style="min-height: 290px;margin-top: 30px;width: 1260px;" show>
                        <div class="display-ib font18 color-3" style="padding: 30px 0px 20px 70px;">
                            <c:forEach items="${departmentList}" var="department">
                                <a href="${pageContext.request.contextPath}/expert/searchExpert.html?departmentId=${department.id}">
                                    <div class="home-address ht60 l-ht60 display-ib cursor-p "
                                         style="width: 300px; margin: 0 20px 20px 0;float: left;height: 100px;line-height: 100px;font-size: 26px;">
                                            ${department.name}
                                    </div>
                                </a>
                            </c:forEach>

                        </div>
                    </div>
                    <%--                    <div class="display-ib b-box bg-f vertical-a-t" style="width: 640px;height: 600px;float: right">--%>
                    <%--                        <div class="ht60 l-ht60 color-3 font20 border-b-1" style="padding-left: 20px">医生风采</div>--%>
                    <%--                    </div>--%>
                    <div class="ht60 l-ht60 color-3 font20 border-b-1" style="padding-left: 20px"><i
                            class="iconfont icon-tongzhi color-f font16"></i>医院资讯
                    </div>
                    <hr>

                    <c:forEach items="${noticeIndexList}" var="notice" varStatus="status">
                        <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='red';"
                            onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                            <div style="min-height: 50px;">
                                <a href="${pageContext.request.contextPath}/notice/findById.html?id=${notice.id }"
                                   class="font14 color-f">
                                    <div class="ht40 l-ht40 cursor-p list" style="padding-left: 15px;width: 1200px;">
                                        <span class="display-ib p5 vertical-a-t b-box font18 color-3 overflow-h list-span"
                                              style="width: 1265px;"><i
                                                class="iconfont icon-youjiantou font18 color-red"
                                                style="margin-right: 10px;"></i>${notice.title}</span>
                                        <span class="display-ib p5 vertical-a-t text-c b-box font14 color-6"
                                              style="width: 160px;float: right" title>[${notice.time}]</span>
                                    </div>
                                </a>
                            </div>
                        </tr>
                    </c:forEach>
                </div>

                <div style="clear: both;">&nbsp;</div>
            </div>
            <jsp:include flush="true" page="/front/inc/right.jsp"></jsp:include>
            <div style="clear: both;">&nbsp;</div>
        </div>
    </div>
</div>


<div style="margin: 0 auto;height: 140px;background: #545454;color:#bbbbbb;margin-top: 20px;text-align: center;"
     class="w1440 font14 text-c">
    <div class="ht30 l-ht30" style="font-size: 18px;line-height: 80px;">Copyright (c) 2019 Sitename.com. All rights
        reserved.
    </div>
    <div class="ht30 l-ht30" style="font-size: 18px;line-height: 80px;"><a
            href="${pageContext.request.contextPath}/login.jsp" style="color: #ffffff">管理员或医生登陆</a></div>

</div>
</body>
</html>
